<template>
  <div class="home-container">
    <h1>AI应用导航</h1>
    <div class="app-cards">
      <div class="app-card" @click="navigateTo('/travel-master')">
        <h2>AI旅游大师</h2>
        <p>智能旅游助手，为您提供旅游建议和规划</p>
      </div>
      <div class="app-card" @click="navigateTo('/super-agent')">
        <h2>AI超级智能体</h2>
        <p>多功能AI助手，解决您的各种问题</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const navigateTo = (path) => {
  router.push(path);
};
</script>

<style scoped>
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  margin-bottom: 2rem;
  color: #2c3e50;
}

.app-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.app-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

h2 {
  color: #3498db;
  margin-bottom: 0.5rem;
}

p {
  color: #7f8c8d;
}
</style>